Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail build in PR check when UT fail #53

Merged
merged 3 commits into from
Dec 25, 2024

Conversation

yaqiangz
Copy link
Contributor

@yaqiangz yaqiangz commented Dec 13, 2024

Why I did it

In current PR check, we would build dhcp6relay debian package, but even if the unit test failed, the build would still be ongoing, then the PR check would pass. It would cause we miss some unexpected damage change
image

How I did it

Modify Makefile to exit with code 1 if test fail

How I verify it

PR check

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yaqiangz yaqiangz marked this pull request as ready for review December 13, 2024 12:05
@yaqiangz yaqiangz requested a review from yxieca December 13, 2024 12:06
@yaqiangz
Copy link
Contributor Author

Hi @yxieca could you please help to review this PR?

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yaqiangz yaqiangz merged commit dbaee8b into sonic-net:master Dec 25, 2024
8 checks passed
yaqiangz added a commit to yaqiangz/sonic-dhcp-relay that referenced this pull request Dec 30, 2024
yaqiangz added a commit that referenced this pull request Dec 30, 2024
Why I did it
In previous PR #53, we fail build when UT fail, it works well in current repo. But UT in sonic-buildimage failed due to redis issue in slave container, which would block submodule update
image

How I did it
Revert previous PR to don't fail build when UT fail for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants